//================================================
//===               Power_sample               ===
//================================================
// note : Analog Port is A7.
// using one order low_pass filter
// filter_coefficient is 0.1
//================================================
#define FILTER_A 0.1
void Power_sample()
{
  if(OK==1)
  {
    Value_filter = analogRead(A7)/1024.0*25;
    OK =0;
  }
  Voltage = analogRead(A7)/1024.0*25;
  Value_filter = (float)((float)Voltage * FILTER_A + (1.0 - FILTER_A) * (float)Value_filter);
}
